\documentclass[11pt, oneside]{book}

\usepackage[pdfnewwindow,unicode,colorlinks,pdftex]{hyperref}
\usepackage[pdftex]{color, graphicx}
\usepackage{listings}
\lstloadlanguages{Verilog}
\lstset{%
  indexstyle=\vidx,%
  indexstyle={[2]\pidx},%
  basicstyle={\tiny\tt},%
  %identifierstyle={\color{lightgray}},%
  %stringstyle={\color{lightgray}},%
  keywordstyle={\color{blue}}, %
  %ndkeywordstyle={\color{lightblue}},%
  commentstyle={\color{dark}},%
  %backgroundcolor={\color{darkslategray}},%
  numbers={left},%
  numberstyle={\tt\color{gray}},%
  language={Verilog}, %
  morekeywords={unique, CombBeg, CombEnd, FF, goto},%
  sensitive={true},%
  columns={flexible},%
  xleftmargin={0.05\textwidth},%
  xrightmargin={0.05\textwidth},%
  frame=single, %
  escapeinside={/*}{*/}%
}


\usepackage{fancyhdr}
\pagestyle{headings}

\usepackage[us]{datetime}

\usepackage{makeidx}
\makeindex

\definecolor{gray}{gray}{0.75}
\definecolor{dark}{gray}{0.55}
\definecolor{orange}{rgb}{1, 0.5, 0.14}
\definecolor{darkslategray}{rgb}{0.16, 0.294, 0.294}
\definecolor{lightgray}{rgb}{0.9, 0.941, 0.847}
\definecolor{commentorange}{rgb}{1, 0.5, 0.141}
\definecolor{lightblue}{rgb}{0, 1, 1}

\newcommand{\DocTitle}{xregister datasheet}
\newcommand{\DocType}{Generated by xregister}
\newcommand{\DocAuthor}{xin\_meng@vlsi.zju.edu.cn}


\begin{document}
%% %% Title page
%% \pdfbookmark{Title Page}{title}

%% \hypersetup{%
%%   pdftitle={\DocTitle},%
%%   pdfauthor={\DocAuthor}
%% }

%% \thispagestyle{empty}

%% \vspace*{\stretch{1}}
%% \noindent\makebox[0pt][l]{\begin{minipage}{\textwidth}
%%     \flushright
%%         {\Huge\textsf{\textbf{\DocTitle\\}}}
%%         \noindent\rule{\textwidth}{3pt}\\[1ex]
%%         \textsf{\textbf{\DocType}}
%% \end{minipage}}


%% \vspace{\stretch{4}}
%% \noindent\makebox[0pt][l]{\begin{minipage}{\textwidth}
%%     \flushright
%%     \tiny{built on \currenttime, \today}\\
%% \end{minipage}}

%% %% \vspace{\stretch{4}}
%% %% \begin{flushright}
%% %%   \textbf{
%% %%     Institute of VLSI\\
%% %%     Collage of Electrical Engineering
%% %%   }
%% %%   %% \href{http://www.hifn.com}{\includegraphics[width=0.4\textwidth]{hifn_logo.jpg}}
%% %% \end{flushright}

%% \pagebreak

%% \thispagestyle{empty}
%% \pagebreak



\frontmatter
%% \tableofcontents
%% \listoftables
%% \listoffigures
%% \lstlistoflistings
\mainmatter
%% \chapter{Architecture}
%% \chapter{Timing Diagram}
\chapter{Register Description}\input{sheet.tex}

\appendix
\refstepcounter{chapter}
\printindex
\addcontentsline{toc}{chapter}{Index} 


\end{document}
